home *** CD-ROM | disk | FTP | other *** search
- var detail;
-
- function init()
- {
- // get object from parent window
- detail = window.arguments[0];
- detail.response = 0;
-
- var forgot_button = document.getElementById("stumble_signout_dialog").getButton("extra1");
-
- forgot_button.label = "Forgot Password";
- forgot_button.setAttribute("oncommand", "forgotPassword();");
- }
-
- function forgotPassword()
- {
- var doc = opener.getBrowser().contentDocument;
- close();
- doc.location = opener.su_base_url + "recover_password.php";
- }
-
- function doOK()
- {
- // Other responses fail silently?
- detail.response = 1;
- return true;
- }
-
- function doCancel()
- {
- detail.response = 0;
- return true;
- }
-